import request from "@/utils/request";
import store from "@/store/index";

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    };
    Object.assign(data, token);
    return data;
}
/**
 * 科目 试题列表
 */
export function getQuestionList(data) {
    return request({
        url: "/location_url/user/question.Lists/questionList",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
/**
 * 科目 子试题列表
 */
export function getQuestionSubList(data) {
    return request({
        url: "/location_url/user/question.Lists/questionSublist",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
